package com.lin.chapter2.soldier;

import com.lin.chapter2.gun.AbstractGun;

public class Soldier {
	private AbstractGun gun;

	public void setGun(AbstractGun _gun){
		this.gun = _gun;
	}

	public void killEnemy(){
		System.out.println("士兵开始杀敌人...");
		gun.shoot();
	}
}
